package com.agrm.api.client;


import com.agrm.model.brand.pojo.Brand;
import com.agrm.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "brand-service")
public interface BrandClient {


    /**
     * 根据id查询品牌
     * @param id  id
     */
    @GetMapping("api/v1/brand/get")
    public ResponseResult<Brand> findById(@RequestParam("id") Integer id);

}
